<!DOCTYPE html>
<html lang="en">
                                                                                                                                                                                                                                                                                                                                          vvvvvcdx
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <h1>图书列表</h1>
    <br>
    <button onclick="window.location='/toAdd'">添加图书</button>
    <br>
    <ul>
        <%
          book.forEach(b => {
        %>
          <li>
            <%=b._id%>--<%=b.name%>--<%=b.author%>--<%=b.price%>
            <button onclick="window.location='/toUpdate/<%=b._id%>'">修改</button>
            <button onclick="window.location='/remove/<%=b._id%>'">删除</button>
          </li>
        <%
          })
        %>
      </ul>




</body>

</html>